﻿<%@ Import Namespace="AFI.Speargun.Web.Core" %>
<%@ Import Namespace="AFI.Speargun.Web.Models" %>

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<AFI.Speargun.Web.Models.InventoryChecking>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    盘点单 - 查看 -
    <%= Html.Encode(Model.InventoryCheckingId) %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        查看</h2>
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="data-table">
        <caption>
            盘点单</caption>
        <tr>
            <th scope="row">
                单号:
            </th>
            <td>
                <%= Html.Encode(Model.InventoryCheckingId) %>
            </td>
        </tr>
        <tr>
            <th scope="row">
                创建者:
            </th>
            <td>
                <%= Html.Encode(Membership.GetUser(Model.CreateBy, false))%>
            </td>
        </tr>
        <tr>
            <th scope="row">
                创建日期:
            </th>
            <td>
                <%= Html.Encode(String.Format("{0:d}", Model.CreateDate)) %>
            </td>
        </tr>
        <tr>
            <th scope="row">
                部门:
            </th>
            <td>
                <%= Html.ActionLink(Model.Department.Appellation, "Index", "Department", new { id = Model.Department.DepartmentId }, null) %>
            </td>
        </tr>
        <tr>
            <th scope="row">
                状态:
            </th>
            <td>
                <%= Html.Encode(((InventoryCheckingStatus)Model.Status).GetTextValue())%>
            </td>
        </tr>
        <tr>
            <th scope="row">
                备注:
            </th>
            <td>
                <%= Html.Encode(Model.Remark) %>
            </td>
        </tr>
    </table>
    <br />
    <% Html.RenderPartial("List", Model.Department.AssetEntry, ViewData); %>
    <p>
        <%=Html.ActionLink("[编辑]", "Edit", new { id=Model.InventoryCheckingId }) %>
        <br />
        <%=Html.ActionLink("[返回到列表]", "Index") %>
    </p>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="LeftContent" runat="server">
</asp:Content>
